#include <iostream>
#include <string>

using namespace std;

class Student
{
private:
    string name;
    int id;
public:
    Student(/* args */)
    {

    }
    Student(string name , int id):name(name), id(id)
    {
        cout << "构造函数" << endl;
    }
    ~Student()
    {

    }

public:
    void show()
    {
        cout << "姓名:" << name << endl;
        cout << "学号:" << id << endl; 
    }
};

int main(int argc, char const *argv[])
{
    // 匿名对象 Student("张三" , 1) 
    Student hqyj[3] = {Student("张三" , 1) , Student("小美" , 2) ,  Student("小帅" , 3) };
    
    hqyj[0].show();
    hqyj[1].show();
    hqyj[2].show();
    
    return 0;
}